

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>&lt;no title&gt; &mdash; agpy 0.1.2 documentation</title>
    
    <link rel="stylesheet" href="_static/extra.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '0.1.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="agpy 0.1.2 documentation" href="index.html" />
     
    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setDomainName', 'pyspeckit.bitbucket.org']);
      _gaq.push(['_setAllowHash', false]);
      _gaq.push(['_trackPageview']);


    </script>
    <link rel="stylesheet" type="text/css" href="_static/extra.css" />
  </head>
  <body>
    <div class="header-wrapper">
      <div class="header">
        <h1><a href="index.html">agpy 0.1.2 documentation</a></h1>
        <div class="rel">
          <a href="http://agpy.googlecode.com">agpy Home </a>  |
          <a href=index.html>Docs Home </a>  |
          <a href="http://code.google.com/p/agpy/w/list">Wiki</a>  |
          <a href=search.html>Search </a>
        </div>
       </div>
    </div>

    <div class="content-wrapper">
      <div class="content">
        <div class="document">
            
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <span class="target" id="module-agpy.pyflagger"></span><dl class="class">
<dt id="agpy.pyflagger.Flagger">
<em class="property">class </em><tt class="descclassname">agpy.pyflagger.</tt><tt class="descname">Flagger</tt><big>(</big><em>filename</em>, <em>debug=False</em>, <em>npca=13</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="_modules/agpy/pyflagger.html#Flagger"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#agpy.pyflagger.Flagger" title="Permalink to this definition">¶</a></dt>
<dd><p>Write out a file with appropriate flagging commands for use in IDL / later editing
Example:</p>
<blockquote>
<div>import pyflagger
f = pyflagger.Flagger(&#8216;050906_o11_raw_ds5.nc_indiv13pca_timestream00.fits&#8217;,&#8216;050906_o11_raw_ds5.nc&#8217;)
f.plotscan(0)
f.close()</div></blockquote>
<dl class="docutils">
<dt>Key commands:</dt>
<dd>left click - flag
right click - unflag
n - next scan
p - previous scan
q - save and quit
Q - quit (no save)
. - point to this point in the map
f - plot footprint of array at this time point
R - reverse order of flag boxes (to delete things hiding on the bottom)
r - redraw
d - delete flag box
t - flag timepoint
s - flag scan
w - flag Whole scan (this is the same as s, except some python backends catch / steal &#8216;s&#8217;)
S - unflag scan
b - flag bolometer
T - unflag timepoint
B - unflag bolometer
c - toggle current scan
v - display data value
P - display the PCA decomposition of the displayed timestream
o - make a map of the array at the sampled time
z - display the power spectra of the displayed timestream (use &#8216;C&#8217; to plot one)
Z - display the power spectra of the displayed timestream over all time
C,L - plot Column/Line
j - plot whole timestream for selected bolo
a - create a footprint movie between two selected points
M,m - flag highest, lowest point in map</dd>
<dt>Map Key Commands:</dt>
<dd>c - toggle current scan
. - show point in timestream
click - show point in timestream
middle click - list all points that contribute to that pixel
r - redraw</dd>
</dl>
<dl class="method">
<dt id="agpy.pyflagger.Flagger.broken_expfit">
<tt class="descname">broken_expfit</tt><big>(</big><em>bolonum=0</em>, <em>plbreak=2.5</em>, <em>doplot=True</em>, <em>logx=False</em>, <em>replotspec=True</em>, <em>defaultplot=False</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="_modules/agpy/pyflagger.html#Flagger.broken_expfit"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#agpy.pyflagger.Flagger.broken_expfit" title="Permalink to this definition">¶</a></dt>
<dd><p>Fit two exponentials (one most likely flat) to the power spectrum
Ignore frequencies &lt; 0.02 Hz, as these are filtered out by the AC sampler</p>
</dd></dl>

<dl class="method">
<dt id="agpy.pyflagger.Flagger.close">
<tt class="descname">close</tt><big>(</big><em>write=True</em><big>)</big><a class="reference internal" href="_modules/agpy/pyflagger.html#Flagger.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#agpy.pyflagger.Flagger.close" title="Permalink to this definition">¶</a></dt>
<dd><p>close the ncdf file and the graphics windows
and flush everything to file</p>
</dd></dl>

<dl class="method">
<dt id="agpy.pyflagger.Flagger.compute_map">
<tt class="descname">compute_map</tt><big>(</big><em>ts=None</em>, <em>tsname=None</em>, <em>weights=None</em>, <em>showmap=True</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="_modules/agpy/pyflagger.html#Flagger.compute_map"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#agpy.pyflagger.Flagger.compute_map" title="Permalink to this definition">¶</a></dt>
<dd><p>Create a map from the data and potentially show it</p>
</dd></dl>

<dl class="method">
<dt id="agpy.pyflagger.Flagger.lookup">
<tt class="descname">lookup</tt><big>(</big><em>tsname</em><big>)</big><a class="reference internal" href="_modules/agpy/pyflagger.html#Flagger.lookup"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#agpy.pyflagger.Flagger.lookup" title="Permalink to this definition">¶</a></dt>
<dd><p>Cache and return data...</p>
</dd></dl>

<dl class="method">
<dt id="agpy.pyflagger.Flagger.make_noisemaps">
<tt class="descname">make_noisemaps</tt><big>(</big><em>save=False</em><big>)</big><a class="reference internal" href="_modules/agpy/pyflagger.html#Flagger.make_noisemaps"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#agpy.pyflagger.Flagger.make_noisemaps" title="Permalink to this definition">¶</a></dt>
<dd><p>Test a variety of noisemap computations</p>
</dd></dl>

<dl class="method">
<dt id="agpy.pyflagger.Flagger.ordered_timestreams">
<tt class="descname">ordered_timestreams</tt><big>(</big><em>ordertype='astro', clear=True, colors=['black', 'purple', 'blue', 'cyan', 'green', 'orange', 'red', 'magenta'], astro_order=['ac_bolos', 'atmo_one', 'atmo_one_itermedian', 'atmos_remainder', 'PCA_astro', 'astrosignal'], atmo_order=['ac_bolos', 'atmo_one', 'expmodel', 'first_sky', 'PCA_atmo', 'PCA_astro', 'noise'], dolegend=True, dosubplots=True, fignum=4, **kwargs</em><big>)</big><a class="reference internal" href="_modules/agpy/pyflagger.html#Flagger.ordered_timestreams"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#agpy.pyflagger.Flagger.ordered_timestreams" title="Permalink to this definition">¶</a></dt>
<dd><p>Plot the timestreams in the order they&#8217;re produced during data reduction</p>
<p><em>ordertype</em> - &#8216;astro&#8217; or &#8216;atmo&#8217;</p>
</dd></dl>

<dl class="method">
<dt id="agpy.pyflagger.Flagger.reset">
<tt class="descname">reset</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/agpy/pyflagger.html#Flagger.reset"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#agpy.pyflagger.Flagger.reset" title="Permalink to this definition">¶</a></dt>
<dd><p>Reset flags after the update function is called.
Mouse is tracked separately.</p>
</dd></dl>

<dl class="method">
<dt id="agpy.pyflagger.Flagger.set_tsplot">
<tt class="descname">set_tsplot</tt><big>(</big><em>tsplot=None</em><big>)</big><a class="reference internal" href="_modules/agpy/pyflagger.html#Flagger.set_tsplot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#agpy.pyflagger.Flagger.set_tsplot" title="Permalink to this definition">¶</a></dt>
<dd><p>Options: set tsplot equal to one of these strings
default = skysub (atmo_one-atmosphere+astrosignal)
default_noscale (ac_bolos-atmo_one-atmosphere)
residual (atmo_one-atmosphere-noise)
last_astrosignal (atmo_one-atmosphere-noise+astrosignal)
astrosignal
dcbolos
acbolos 
acbolos_noscale 
atmosphere
default_noscale
scale
raw
rawscaled
noise
zeromedian</p>
</dd></dl>

<dl class="method">
<dt id="agpy.pyflagger.Flagger.unmask_timestream">
<tt class="descname">unmask_timestream</tt><big>(</big><em>timestream='data'</em><big>)</big><a class="reference internal" href="_modules/agpy/pyflagger.html#Flagger.unmask_timestream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#agpy.pyflagger.Flagger.unmask_timestream" title="Permalink to this definition">¶</a></dt>
<dd><p>Remove masks for timestream</p>
</dd></dl>

</dd></dl>



          </div>
        </div>
      </div>
        </div>
        <div class="sidebar">
          <h3>Table Of Contents</h3>
          <ul>
<li class="toctree-l1"><a class="reference internal" href="agpy.html">Adam Ginsburg&#8217;s Python Code (agpy)</a></li>
<li class="toctree-l1"><a class="reference internal" href="image_tools.html">Image Tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="fft_tools.html">AG_fft_tools Package</a></li>
<li class="toctree-l1"><a class="reference internal" href="plfit.html">plfit Package</a></li>
</ul>

          <h3 style="margin-top: 1.5em;">Search</h3>
          <form class="search" action="search.html" method="get">
            <input type="text" name="q" />
            <input type="submit" value="Go" />
            <input type="hidden" name="check_keywords" value="yes" />
            <input type="hidden" name="area" value="default" />
          </form>
          <p class="searchtip" style="font-size: 90%">
            Enter search terms or a module, class or function name.
          </p>
        </div>
        <div class="clearer"></div>
      </div>
    </div>

    <div class="footer">
      &copy; Copyright 2011, Adam Ginsburg.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.2pre.
    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-6253248-2']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();

    </script>
        
    </div>
  </body>
</html>